﻿<Window x:Class="MyMoviesBrowserConfiguration.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="My Movies Browswer Configuration" Height="250" Width="750">
    <Grid>
        <Grid x:Name="serverGrid" Margin="10">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>

            <TextBlock Grid.Column="0" Text="Please enter the name of the computer hosting the My Movies Server." Margin="3" />
            <TextBox Grid.Column="1" Text="{Binding MyMoviesServerName, Mode=TwoWay}" Margin="3"  />
            
            <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Right">
                <Button x:Name="continueButton" Content="Continue" Margin="3" />
                <Button x:Name="cancelButton" Content="Cancel" Margin="3" />
            </StackPanel>
            
            <TextBlock x:Name="statusTextBlock" Grid.Row="2" Grid.ColumnSpan="2" Margin="10" TextWrapping="Wrap" />
            <TextBlock x:Name="errorTextBlock" Grid.Row="3" Grid.ColumnSpan="2" Margin="10" TextWrapping="Wrap" />
        </Grid>
        <Grid x:Name="settingsGrid" Margin="10" Visibility="Collapsed">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="Auto" />
                </Grid.ColumnDefinitions>

                <Label Grid.Column="0" Grid.Row="0" Content="Folder To Download Trailers To:" />
                

                
                <TextBox Grid.Column="1" Grid.Row="0" Width="470" Text="{Binding Path=TrailersDownloadFolder, Mode=TwoWay, UpdateSourceTrigger=LostFocus, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="3" />
                <CheckBox Grid.Column="0" Grid.ColumnSpan="2" Margin="20,3,3,3" Grid.Row="1" Content="Download Not Yet Rated" IsChecked="{Binding Path=DownloadNotYetRated, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" />
                <CheckBox Grid.Column="0" Grid.ColumnSpan="2" Margin="20,3,3,3" Grid.Row="2" Content="Download G" IsChecked="{Binding Path=DownloadG, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" />
                <CheckBox Grid.Column="0" Grid.ColumnSpan="2" Margin="20,3,3,3" Grid.Row="3" Content="Download PG" IsChecked="{Binding Path=DownloadPG, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" />
                <CheckBox Grid.Column="0" Grid.ColumnSpan="2" Margin="20,3,3,3" Grid.Row="4" Content="Download PG-13" IsChecked="{Binding Path=DownloadPG13, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" />
                <CheckBox Grid.Column="0" Grid.ColumnSpan="2" Margin="20,3,3,3" Grid.Row="5" Content="Download R" IsChecked="{Binding Path=DownloadR, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" />
                <CheckBox Grid.Column="1" Grid.ColumnSpan="2" Margin="20,3,3,3" Grid.Row="1" Content="Download HD" IsChecked="{Binding Path=DownloadHD, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" />
                <CheckBox Grid.Column="1" Grid.ColumnSpan="2" Margin="40,3,3,3" Grid.Row="2" Content="Try to download 1080p" IsChecked="{Binding Path=Try1080, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" />

                <Button Grid.Column="2" x:Name="browseButton" Content="Browse" Margin="3" />
                
                <Grid Grid.Column="0" Grid.Row="8" Grid.ColumnSpan="2" Grid.IsSharedSizeScope="True" HorizontalAlignment="Right">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition SharedSizeGroup="Buttons" />
                        <ColumnDefinition SharedSizeGroup="Buttons" />
                    </Grid.ColumnDefinitions>
                    <Button x:Name="saveButton" Content="Save" Padding="3.5,0,3.5,0" Margin="3" />
                    <Button x:Name="cancelButton2" Content="Cancel" Padding="3.5,0,3.5,0" Grid.Column="1" Margin="3.5"/>
                </Grid>

            </Grid>

        </Grid>
    </Grid>
</Window>
